﻿
using CozeDomain.Entities;
using CozeDto.SysDicDtos;
using D.UtilFreesqlOrm;

namespace CozeDomain.IRepositories
{
    /// <summary>
    /// 系统字典参数接口
    /// </summary>
    public interface ISysDicEntityRepository : IBaseRepository<SysDicEntity>  
    {
        /// <summary>
        /// 分页查询
        /// </summary>
        /// <param name="pageQuery"></param>
        /// <returns></returns>
        Task<Tuple<long, List<RepQuerySysDicTreeTable>>> GetPagesAsync(ReqQuerySysDicPage pageQuery);

        /// <summary>
        /// 查询下拉框列表
        /// </summary>
        /// <param name="dicTypeUniqueCode">字典类型</param>
        /// <returns></returns>
        Task<List<RepSelect>> QueryDicSelect(string dicTypeUniqueCode);

        /// <summary>
        /// 查询下拉框树
        /// </summary>
        /// <param name="dicTypeUniqueCode">字典类型</param>
        /// <returns></returns>
        Task<List<RepTreeSelect>> QueryDicTreeSelect(string dicTypeUniqueCode);

        /// <summary>
        /// 查询下拉框树2
        /// </summary>
        /// <param name="dicTypeUniqueCode">字典类型</param>
        /// <returns></returns>
        Task<List<RepTreeList>> QueryDicTreeSelect2(string dicTypeUniqueCode);
    }
}
